package com.hrt.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ProductStatu {

	private final static Integer PRODUCT_IS_DEMO=1;
	
	private final static Integer PRODUCT_IS_NOT_DEMO=0;
	
	private static List<Map<String,Object>> productStatus;

	public static List<Map<String, Object>> getProductStatus() {
		if(productStatus==null)
		{
			productStatus=new ArrayList<Map<String,Object>>();
			Map<String, Object> demoMap=new HashMap<String, Object>();
			Map<String, Object> notDemoMap=new HashMap<String, Object>();
			demoMap.put("key", PRODUCT_IS_DEMO);
			demoMap.put("val", "样品");
			notDemoMap.put("key", PRODUCT_IS_NOT_DEMO);
			notDemoMap.put("val", "非样品");
			productStatus.add(demoMap);
			productStatus.add(notDemoMap);
		}
		return productStatus;
	}

	public static void setProductStatus(List<Map<String, Object>> productStatus) {
		ProductStatu.productStatus = productStatus;
	}
	
	
	
}
